made gauss approx work again