change pre to code