compare each lines