removing useless brackets