added latest data and plotting code