correct class virtual function declaration after previous change