make some modifications to incorporate recommender system