updated calculator functionality but still can't get total