update the code pre to table