fixing z score function
fixed z score