Revert "removed one virtual function"

This reverts commit b6da1a45610d2c2b31cada1070530b2fddfe2d3f.