moving dynamic vars into base class