fix private properties and public methods