Update solution filter

Update solution filter function.