updated variables to use public and private interfaces