add in missing brackets