corrected the visibility of some internal member vars