changes for replication