modified stock kernel