fixing issue with variable name
updating text alert