[hex] constructor