added processing of results