set uniq function