added capability to recognize bracket ranges