added favorites query