update gem_velocity and use newer interface