moved the filtering logic to model file
Merge remote-tracking branch 'origin/master'