add: template removing function has been added.