takes care of repeated numbers