adding filter to refuse addition to dictionary if entry already exists