additon of brace to close if and else