change printResult()
change function name to saveResult()