added chi square test