fix for entering duplicates