changing reccomendation function