split intertial_compensation function into separate compensation and transformation functions