working on fucking number of queries