remove everything within the red marked area and then remove the red line