get the last return value of a function as argument in the next call