initial line extraction