added stack to BTreeIndex