changed bits to appear in natural order