add a check of tag