updated template file