to add func