add filter primitive to arrays