logic to show commas