altered the api