median line is drawn correctly now