added z-score option