added input stream to the private str