reformat main to have better spacing