add write partial