transferred templates to files