start of next version with kernel computation