refactored find to use the more elegant select instead of looping over the list of tasks