update replication code