improved jumping detection