compact kernel in higher dimensions