debug code part 2