fixed recommendation logic