added guard around DEBUG definition