fixed the results printing