catch invalid data type in subsets