Finding function now work properly

Finding function