reversing bit order function is included