add notification function