changes for FilterService.js to remove unnecessary