perfecting motion

fixed the bug that caused jumps