implemented find functionality