Subset the z variable