get rid of duplicate entries in data