revert to code template