added boolean check to movement status