added plot 1 and readdata