make z-score more generic