if first time called
if(p == *ptree)