code review: remove access to private variables