add get public function