movement is now limited correctly