switch to turn off legend