reformat main a bit