replace taglist comparison with indicator variable