adding replication template bits