put if statement on alert msg
added alert ifs