update instructions for handling subtrees