add binary value encoding