updated template
dynamic template working;