add document write