updated the endpoint