fix for duplicates