added mcubes.h