hex optimization