fixed warning involving virtual methods and overrides