fix the calculation of volumn