added line recognition
added line recognition