added canonical word logic