fix problem with curly braces