If the beep() was executed and if there is no other beep() in your script, jump has definately been set to 0. So the error must be somewhere else in your script. If you need help finding it you gbetter post your whole script.