use variable when getting volume