Writing nodes