got a hexagon function