gap detection
merged master
merged master
working gap detection