notification function updated