added detecting full lines