prevent duplicates from appearing in tables