refining kernel writer