modified with correct poisson and gaussian plots