refactor - naming of input stream var