a better way to do the multiple iterations of clipping/filtering