fixed static function error