output stream issue resolved