fixed jumpSize function