code for custom filter (based on qualification)