Debug Method for rotation problem