matching the lines