handle rotation properly