some changes in inputStream