update replica constant