move bits/item count out of logic