more correct view query