method for tag_optional