update withTargetLabels method