implemented variable transform to ln(S) instead of S