implementing find()