fixed rotated grid generation