second pass updates for replication