add the computation of boundary kernel