remove unnecessary brackets