Revert "use debug()"

This reverts commit a02fccbd2988562c13834eb4d659c8a4ab79db8f.