using template finally