use lines() to update rows attribute