plots
plot legend
plotting threads