add func for app