added output result to txt