corrected main