+ tweak return of tail add function code