3rd commit

the alert has been added to the function