working on find function