adding matrix rotation