correct saving of results