change generation matrix rotation