changes in the way query is built in custom and trending dyscos