clean the template
clean the template