improved template function description