unique_by & check type diff