add bracket handling.