added self to template data