reworked mored optimally the kernels for prefiltering