re-structure the response output