removed old/new variance computation comparison.  add w, j as parameters to complement safe mode