optimized process handling a bit