implemented a filter for the recommendation