bit transformation