results.data needs to be an array, not a hash