database and distance jump working fully