fix static function