revise peer replicating logic