fixed integer division error on volume calculation