remove redundant curly braces