output changed, number of bits as input included