minor changes to api call