added an alert system