format the codes a bit