finished refactoring BitConverter