change addition of bits to max