added ToDebug delegate