adjusts query size