working on solution to right-edge rotation error