refactor objects  to create true private variables