combination of kernel 1 and 3 implemented.