fixing the api