tried to work with rotation code