fixed "else" syntax