added hex to bin conversion