Small change to tree
generalise index offset comparisons