organizing the results