final state of analysis and plotting