replace code with pre