update complete space valid/debug function