add debug function (for space/operator)