bug fixed in box.hpp