added functor possibility to plot base class