debug outputtopk