changing the contains relation from a dict to a set of tuple