some changes in uniq main method