Re-format the codes