check output stream in writing TIN