better setup and plot for chisq test