old debug code removed