bit refactored