adjust list query filter to make it more efficient