returning an array for results rather than a map of arrays