revert to template