tweak ParseSquareTreeRec