change some properties from private to protected.