changed the way new positions and rotations are set