replace write complete