added call to newly static get_gaps