detecting leaf ok