improved DepthResolvedQueryN.ipf