updating to allow for negative rotations