update kernel1 for non numpy