made all non-public functions and variables static