updates for gapcount