working on multiple queries