fixed bug in variance