rejigger to make ddo_statement part of ddo