bugfixes
make a method virtual