adding dbgprintf