prepare subset data