fixed the jump function