remove the template after