change id to hex