working on carve.h