added a 4th else if and alert