removing extra brackets