syntax errors fixed
new code in main_temp