adding totaling and percentages