changed computation of masterVolume to simplify and eliminate if statement