fixed the bug  of extra bracket removed in the file