added main_template