addresses query optimization