DRAG THE ENDPOINTS A AND B