second attempt to grok brackets