minimize repeated hex values