add sum calculation to help