understanding replication