implemented modified z-score