branch without calling new on static function