changed outputstream to filewriter
merged