use chan for acture write