capture lines where relevant