hexMap and func