use Array.select rather then Array.find