add binary encoding