fast repair

adding debug code