rotate solution