now creates template