worked on chisquared