replace code base