inertial algorithm