add func in .ctor section