Works well, but this code without jumping