added code for plotting temp results