new offset impl in C.