finished implementing hex schema