limit the number of queries