initialize final_result int