fixed main formatting