clean up base class