improve setRecomend and remove unused function