legacy to hexagonal