changed how the results are returned