made a variable take care of the move length