use Format for ptree printing