bug for static function