changes to ORM uniqify method