first working version with random probes, but too slow