copy/filter instead of for loop