changing api call to match some of the changes