added testing debug code