refactoring code; getRecommendByUser