restrict query size