added tally end tag