add missing closing braces