added VariableNames as legend to plot