complete the fuction of find