fixed main syntax issues