subset function

Subset