remove brackets that are not needed