remove doublebrackets