guarding against duplicates