where g(X(s)) has form