add math definitions of kernel