add 3-bit output