fixed small syntax error in calculating number of volumes