update to use newest API changes due to unsized array support
Add a version of filter using unsized array