Gaussian constraint for phases still bugged reset parameters to original values maybe still needs to be done