create function to set the volume