update to return lines that contain pattern