fixed label sizes and divide-by-zero logic