fix storing of results