template type free method