modify available in inputstream method