changes to work with brackets instead