added volume(vol) function (not tested!)