set private function