structuring better nesting for api response