added code into the template