working on base16 encode