improving unitcost cgi
cumulated volume function ready