fixing missing api call