code to pre