fixed bug in removing subscripts and finetuned regex for chi2