adding total calculation'