replacing the right line