use find instead of logical