added add func