added subsetOf function