added ability to use filters in the for loop