adding module information to template function