removed "else if" snippet