inheriting from base class fix