fixed rotation code for decos