fixed api endpoint