change table to pre