now api returns object rather than array