initializing input stream