update binary dict