switched to first (List::Util) from grep