fixed final call to progFn