commented X/Y rotation code