finish the hybrid test for within distance