build hbmat2hb