Added comment in to_canonical