use find instead of iteration