changed the structure of the json response