remove brackets in modes