fuck me with a rake. I used sin_fit instead of sig_fit+sin_fit in the matlab code to update sig_fit
still not working