trying to fix api call