add func dist