fix getting template argument functions