add debug conditional