made median distance two lines