move template pattern to one file