changed arithmetic to display the formatting