changed to function version.
sign working ok.