make func() a named function.