changed endpoint for api