removed useless buffered inputstream