changed alert_types to alert_classes fxn name