remove deprecation warning from private function