delete useless template code