made result a property and add_result just update the dict
test script is now using the result property