refactoring public --> private fields