add function for hex to bin