added dec to hex conversion