added code to export the distribution plots