updated sector query