clean up rotation stuff