added sumTotal function