change static function that is not called from outside & ci

* change static function that is not called from outside
*  solved pull request problem & build error