adaptations for inversion part