for volume calculation