fixed nested braces problem