removed bufferedstreams from filestreams as they are not needed