added method max_nvariance