disctinction between tree idx and original idx + debugging