add automatic notification function