update the replication