revised distribution plotting