about to delete some old branches
chi squared work, not finished