first attempt at fixing volume bug