added union and uniq