problem10: cleanup debug code