add function for notification