replaced BMIndex to Tuple3.