changed how brackets are handled