making unique rows in the lists