potential fix to movement code