tweak on category query