update virtual functions, making corrections, and declared in forest.h and defined in forest.cc