add active in queries