public to private function

sorry for bothering you for this kind of PRs