change private properties to protected ones