rectified main