switch back to original up to date check
spacing
oops left in some debug code