reworked the variable height jump algorithm