working on updating api call