need to fix indexing in group_warping_bayes