alerting function to see if it works