Change endPoint to check