add computing variance