subsetting and calculate new variables