wrapup fexc finh sweep in a function