add and comment debug code