changed the list of names to a set to improve lookup time