working on calculate summ