changed sets to frozensets and added