conver private in public methods for tests