implemented code that fixed a bug where the results from the server were being nested inside an additional uneeded array