overloading for default
pass functors by reference in newick writer