accomodates for repeat values