format the code part