handle the case when we need to extract a _id field from a bag tuple