removed duplicate "else"