adds exclude filter to loop