changed input stream for testing