min and max kernels work