add divs around pregroup text, don't put join unless groups have groups that aren't zero