now creates template file