add curly braces to match coding standard