change some public fields to private