ITAP of a snake in a tree