I'm not sure gapFinder is what it's supposed to be, but it seems
intuitively it should be like this.