added binary arithmetic