update code to work with the other api endpoint