if current index is not the root