added dynamic template