add missing curly braces