rm brackets on error checks