fixed private function error