added modes of variation
added modes of variation, with variance computation