doit in first and last return calls