If it's really 1-to-1, you might want two dictionaries, one with a:b pairs where a is in set1, b in set2, the other with b:a pairs. That'd give you 2-way lookup. Kirby