changed braces/indentation