change public member to private member