added getnextline pre-work