record inversion