added brace check to compilation