fixed hexidecimal conversion