template ended ended