first iteration of inertia implemented