more lines, better text bound checking