update for replication