added volume variable, improved formatting