add write out.