fixed the JSON structure for the return.