find_gaps working