modified matrix rotation problem.