adding filters to an array