fixing the duplicates