az_mean modifications

approved on Q tsm case (n=6)