adding replication pieces