updated clearAlert
updated variable names