simplify code for getting volume and section