adjusted params in matlab code