improve error message regarding uniqueness