adjusted functionality for recommendations