small refactoring
removed unused variable
dried envelope preparation
dried smoothlySetVolumeAtTime()