added missing ifdef DEBUG