added filter vs for loop