stringification of functions improved