replacing kernel