add public function on data refresh