static function call fix