add rotation canonicalization