adding find() function