Code printing working with data subsetting