correct results to resultsArray