change getsignature function into s:f