fixing alert statement