line extraction