fixed my debug code