add donefunc as a parm
remove comments