mapping kernel to segments properly
fixed conflict