corrected gap_check option