fixed typos in summarizeResults function