revising query for size