changes to volume func