added option to convert to z scores