updating bits