remove query add to set