contains in HashSet should be faster