use frozenset instead of deprecated sets module