define subset of bags