DEFINEs in kernel function deleted