working on loop to subset.