A solution to my rotation problem