fixed unmatched curly braces