write stream alternatively from coding tree