added getnextline