trying to get API call to work