add debug on type