corrected flags