added template file
enhanced templating