Update solution filter function

Update to solution filter.