updating api call for AM