delete unnecessary template tag