multidimensional comparison of local and global