changed my mind about adding alert to the else.