add debugging for ryan's rotate problems