add func to vector