remove duplicate entries from references