updated hexa_gt.cpp