modified newstemplate, prettier record tpl