handle value null for rotation