gap-detection