exporting convertGaps