correct kern function used