decriping rebuilding of gapfinder