rewrote boundary in C