improve jump action algorithm