filter is definitely not a natural iteration function, maybe a foreach or a for loop?