reorganized some bits in order of interest