update kernel method