return values and plotting details