updates of code from hexagon
updates of code from hexagon