clean up class names for rotation