last changes solving bug in gmm approximation