add replicate id to mapping