updating debug code