added 5th else if and alert