added tag_state validation