removed create_template fn