move of sumVolume function