change private function to public