refactores response structure