find function implemented