added result_text in some code.