replication algorithm - backup added