improve formatting of values