pseudo solution to movement problem