actually implement feature_z statistic