added z-score calculation