removed dataoutput stream code