made rotation code complete