added the alert statement