use deviation instead of variance