revised somatic statistic, still has nan bug