bugfix variance